package behavior2.visitor.demo;

public class Computer {
	private Hardware cpu;
	private Hardware harddisk;
	
	public Computer(){
		this.cpu = new Cpu("Inter Core i7-620");
		this.harddisk = new Harddisk("Seagate 500G 7200ת");
	}
	
	public void accept(ComputerVisitor computerVisitor){
		cpu.accept(computerVisitor);
		harddisk.accept(computerVisitor);
	}
}
